package com.example.worddemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class WorddemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(WorddemoApplication.class, args);
        ApplicationContext context = SpringUtil.getApplicationContext();
        WordService wordService = context.getBean(WordService.class);
        wordService.getWordTitles();
    }
}
